package dataStructs.tree;

import lombok.Data;
import lombok.ToString;

/**
 * @author Jonny Long
 * @date 2021/3/9 8:33
 */
@Data
@ToString(of = {"no","name"})
public class ThreadedNode {
    private int no;
    private String name;
    private ThreadedNode left;
    private ThreadedNode right;
    /**
     * false：子节点
     * true：前驱或后继节点
     */
    private boolean isLeftType=false;
    private boolean isRightType=false;

    public ThreadedNode(int no, String name) {
        this.no = no;
        this.name = name;
    }
}
